﻿using System;
using System.Threading;

namespace AfterHolidays
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Countdown");
            Console.Write("min: ");
            int minCount = int.Parse(Console.ReadLine());


            for (int min = minCount - 1; min >= 0; min--)
            {
                for (int sec = 59; sec >= 0; sec--)
                {
                    Console.Clear();
                    Console.WriteLine("{0}:{1}", min, sec);
                    Thread.Sleep(10);
                }
            }

            int[] frequency = new int[]
            {
                1235, 2000, 158, 37, 800, 3000
            };

            int[] duration = new int[]
            {
                1000, 2000, 1000, 500, 1000, 500
            };


            for (int i = 0; i < frequency.Length; i++)
            {
                Console.Beep(frequency[i], duration[i]);
            }
        }
    }
}
